{extend name="public/base"/}

{block name="body"}
<div class="col-xs-9">
    <!-- Contents
    ================================================== -->
    <section id="contents">

        {article:list name="article" category="1" child="true"}
        <div class="row">
            <div class="col-xs-2 pull-left">
                <a href="{:url('Article/detail?id='.$article['id'])}">
                    <img class="img-responsive" src="__ROOT__{$article.cover_id|get_cover_path}" />
                </a>
            </div>
            <div class="col-xs-10">
                <h3><a href="{:url('Article/detail?id='.$article['id'])}">{$article.title}</a></h3>
                <p class="lead">{$article.description}</p>
                <span><a href="{:url('Article/detail?id='.$article['id'])}">查看全文</a></span>
                <span class="pull-right">
                          <span class="author">{$article.uid|get_username}</span>
                          <span>于 {$article.create_time|date='Y-m-d H:i',###}</span> 发表在 <span>
                          <a href="{:url('Article/lists?category='.get_category_name($article['category_id']))}">{$article.category_id|get_category_title}</a></span> ( 阅读：{$article.view} )
                      </span>
            </div>
        </div>
        <hr/>
        {/article:list}
    </section>
</div>
{/block}
